import React from "react";
import { Modal, List } from "antd";

const CustomModal = ({ customModalVisible, handleCustomModalOk, handleCustomModalCancel, data }) => {
  return (
    <Modal title="推送站点" visible={customModalVisible} onOk={handleCustomModalOk} onCancel={handleCustomModalCancel} bodyStyle={{ minHeight: 250 }} footer={null}>
      <List size="small" header={null} footer={null} dataSource={data} renderItem={item => <List.Item>{item.site_name}</List.Item>} />
    </Modal>
  );
};

export default CustomModal;
